package example;

/**
 * Created by kz on 2017/7/12.
 */
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.Map;
@Controller
public class HelloController {

    @RequestMapping("")
    public String start(){
//        return "redirect:/index";
        return "forward:/index";
    }

    @RequestMapping("/index")
    public String index(){
        return "welcome";
    }
}